<?php get_header(); ?>
<div class="large">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
	<div class="post-title">
		<p class="post-edit" style="float:right;"><?php edit_post_link('Edit','',''); ?></p>
		<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
	</div><!-- .post-title -->
	<div class="post-footer">
		<span class="post-date">小七 发表于 <?php the_time('Y年m月d日'); ?></span>
		<span class="post-comments"><a href="<?php comments_link(); ?>" title="查看宝贝的评论"><?php comments_number('前去评论一番','1 条评论','% 条评论'); ?></a></span>
		<span class="post-category"><?php the_category(', '); ?></span>
		<?php the_tags('<br/><span class="post-tags">关键字: ', ', ', '</span>'); ?>
	</div><!-- .post-footer -->
<div class="post-content">
<?php 
	$taoke_url = get_post_meta($post->ID,'taoke_url', true);
	$taoke_title = get_post_meta($post->ID,'taoke_title', true);
	$taoke_image = get_post_meta($post->ID,'taoke_image', true);
	$taoke_price = get_post_meta($post->ID,'taoke_price', true);
	if (!empty($taoke_url)) {
		?>
<div class="alignleft">
	<img src="http://assets.taobaocdn.com/sys/common/icon/trade/xb.png" alt="消费者保障计划"/>此宝贝已加入<a href="http://service.taobao.com/support/258-273/help-1791.htm" target="_blank">消费者保障计划</a>,<br />
	淘宝网提供<a href="http://service.taobao.com/support/146-751/help-2090.htm" target="_blank">先行赔付</a>服务。 <br />
	卖家承诺：<a href="http://service.taobao.com/support/146-751/help-2064.htm" class="safe-7"><img src="http://assets.taobaocdn.com/sys/common/icon/trade/xb_sevenday_return.png" alt="七天无理由退换货"/>七天无理由退换货</a><br />
	<a href="<?php echo $taoke_url; ?>" title="去淘宝网购买 <?php echo $taoke_title; ?> " ><img class="centered" src="<?php bloginfo('template_url'); ?>/images/go.gif" alt="去淘宝网购买 <?php echo $taoke_title; ?> " width="169" height="40" /></a>
</div>
	<?php } ?>
<?php the_content("Continue reading&hellip;"); ?>
	<?php if (!empty($taoke_url)) { ?>
<div class="alignleft">
	<table cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="width:200px;border: 1px solid #E6E6E6;"><tr><td colspan="2" style="height:40px;"><a target="_blank" href="<?php echo $taoke_url; ?>" style="padding-left:5px;margin:5px;line-height:20px;color:#0000FF"><?php echo $taoke_title; ?></a></td></tr><tr><td rowspan="2" align="center"><div style="margin:5px auto; width: 80px;height:80px;"><a target="_blank" href="<?php echo $taoke_url; ?>" style="width: 80px; margin:0px;padding:0px;height: 80px; overflow:hidden;"><img style="margin:0px;border:none;" src="<?php echo $taoke_image; ?>"></a></div><div class="clearing"></div></td><td style="line-height:22px;padding:0px 0px 8px 0px;" align="center"><span style="font-weight:600;margin:5px;line-height:22px;color:#CC0000;"><?php echo $taoke_price; ?></span><br />&nbsp;<br /><a target="_blank" href="<?php echo $taoke_url; ?>" style="float:none;" ><img style="float:none;border:none" name="" align="middle" src="http://taoke.alimama.com/images/cps/fgetccode_btn.gif"></a></td></tr></table>
</div>
<div class="tao-bottom">
	<img src="http://assets.taobaocdn.com/sys/common/icon/trade/xb.png" alt="消费者保障计划"/>此宝贝已加入<a href="http://service.taobao.com/support/258-273/help-1791.htm" target="_blank">消费者保障计划</a>,<br />
	淘宝网提供<a href="http://service.taobao.com/support/146-751/help-2090.htm" target="_blank">先行赔付</a>服务。 <br />
	卖家承诺：<a href="http://service.taobao.com/support/146-751/help-2064.htm" class="safe-7"><img src="http://assets.taobaocdn.com/sys/common/icon/trade/xb_sevenday_return.png" alt="七天无理由退换货"/>七天无理由退换货</a><br />
	<a href="<?php echo $taoke_url; ?>" title="去淘宝网购买 <?php echo $taoke_title; ?> " ><img class="centered" src="<?php bloginfo('template_url'); ?>/images/go.gif" alt="去淘宝网购买 <?php echo $taoke_title; ?> " width="169" height="40" /></a>
</div>
<?php } link_pages('<p class="pagenav">页面: ', '</p>'); ?>
</div><!-- .post-conent -->
</div><!-- #post-ID -->
<?php comments_template(); ?>
<?php endwhile; ?>
<?php else : /* Error 404 */ ?>	
	<p>对不起，你访问的页面不存在！</p><p><a href="<?php bloginfo('url'); ?>" title="返回首页">返回首页 &hellip;</a></p>
<?php endif; ?>
</div><!-- #large -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>